<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>
<%@ taglib prefix="myfn" uri="/WEB-INF/jstlfun.tld" %>
<%@ taglib uri="/WEB-INF/c.tld"  prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="x-ua-compatible" content="ie=7" />
	<TITLE>全部群组</TITLE>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/gloabl.css">
	<link rel="stylesheet" type="text/css" href="${cpath}/css/user.css">
	<link rel="stylesheet" type="text/css" href="${cpath}/css/reset.css">
	<link rel="stylesheet" type="text/css" href="${cpath}/css/group.css" />
	
</head>
<body>
<script> 
	//转页面
	var curUserID = '${userID}';
	if((curUserID == "")||(curUserID == null)){
		parent.window.location.replace("${cpath}/index.jsp"); 
	}
</script>

 	<!-- 页首 {{{ -->
	<%@ include file="/group/grouphead.jsp"%>
   
	<div id="cont">
	<!-- 左边菜单栏 {{{ -->
	<%@ include file="/leftmenu.jsp"%>

		<DIV id=group>

		<!-- 右侧宽栏 {{{ -->
		<DIV class=group_mid>

			<div class='subtop' >
					<p><a href="#"><img src="${cpath}/${myfn:getGroupPic(theForm.groupID)}" ></a></p>
				<dl >
						<dt class="tit"><a href="#">${myfn:getGroupName(theForm.groupID)}</a>&nbsp;&gt;&nbsp;<a >群管理</a></dt>
						<dd class="intro"><span>&nbsp;</span></dd>
				</dl>
				<div class='fun'>
					<li><a href="javascript:history.go(-1);">返回上一页</a></li>
				</div>
			</div>
			<div id="section-header" style="margin-left:0px;">
					<ul id="nav-secondary">
						<li id=""><a href="${cpath}/group.do?action=adoper&groupID=${theForm.groupID}" ><span>基本信息</span></a></li>
						<li id="nav-on"><a href="${cpath}/gmember.do?action=adlist&groupID=${theForm.groupID}" ><span>成员管理</span></a></li>
					</ul>
					<ul class="related-links">
						<li class="last"></li> 
					</ul>
			</div>
						
			<DIV class='whole'><!-- 右侧宽栏 }}}-->
			 <c:forEach var="member" items="${memberlist}" varStatus="status">   
			 <div class='subtop' >
					<p><a href="#"><img src="${cpath}/${myfn:getUserPic(member.userID)}" ></a></p>
				<dl >
					<dt class="tit"><a href="#">${myfn:getUserNick(member.userID)}</a></dt>
					<dd class="info"><span>${myfn:getMsg("GMEMBER_TYPE", member.type)}</span>&nbsp;|&nbsp;<span>${myfn:formatDate14(member.CTime,"-")}&nbsp;加入</span>&nbsp;|&nbsp;<span>${myfn:getMsg("STS_FLG", member.status)}</span></dd>
				</dl>
				<div class='fun'>
					<c:if test="${member.type != '1' }"> 
					<li><a href="${cpath}/gmember.do?action=delete&userID=${member.userID}&groupID=${member.groupID}">移出本群</a></li>
					</c:if>
				</div>
			 </div>
 			 </c:forEach> 
			</div><!-- whole end }}}-->								

		</DIV><!-- profile_mid }}} -->
		</DIV><!-- group end }}} -->

	<!--页尾 -->
	<%@ include file="/indexfoot.jsp"%>
	</DIV><!--cont end-->

</body>
</html>
<!---->

<script>

    /**
     * 检查项目资料维护
     */
	function doConfirm()
	{
		var form = document.theForm;

		var action = form['action'];

    form.submit();
	}

	/**
   * 根据具体请求设置各个组件状态	
   */
  function showState()
	{
		var action = '${theForm.action}';
		var form = document.theForm;		
		if(action == 'detail')
		{
           
			document.getElementById("back").style.display = "none";

		}
		else if(action == 'modifyPage' || action == 'update')
		{

			form['action'].value = 'update';
		}

	}
	showState();


</script>

